//
//  XRCommonTopLableWithTextViewCell.m
//  XClassRoom
//
//  Created by NeiQuan on 16/11/17.
//  Copyright © 2016年 Mr-yuwei. All rights reserved.
//

#import "XRCommonTopLableWithTextViewCell.h"

@implementation XRCommonTopLableWithTextViewCell

-(void)addOwnView
{
    _titleLable=[[UILabel alloc] init];
    _titleLable.font=kCommonSmallTextFont;
    _titleLable.textColor=[UIColor colorWithName:@"333333"];
    [self.contentView addSubview:_titleLable];
    [_titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).with.offset(15);
        make.top.equalTo(self.contentView).with.offset(5);
        make.height.mas_equalTo(21);
        
    }];
    
    _textView=[[UITextPlaceHolderView alloc] init];
    _textView.font=kCommonSmallTextFont;
    _textView.textColor=[UIColor colorWithName:@"333333"];
    _textView.layer.cornerRadius=4.0;
    _textView.layer.masksToBounds=YES;
    _textView.layer.borderWidth=0.3;
    _textView.layer.borderColor=[UIColor colorWithHexString:@"0xdddddd"].CGColor;
    [self.contentView addSubview:_textView];

    [_textView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).with.offset(15);
        make.right.equalTo(self.contentView).with.offset(-15);
        make.top.equalTo(_titleLable.mas_bottom).offset(5);
        make.bottom.equalTo(self.contentView).with.offset(-5);
    }];
    
}

@end
